package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Arrays;

@Controller
@RequestMapping("/test")
public class Controller2 {
    @RequestMapping("/thymeleaf")
    public String testThymeleaf(Model model){
        model.addAttribute("msg","<h1>xiaoning</h1>");
        model.addAttribute("users", Arrays.asList("xiaoming","xiaoning"));
        return "test";
    }
}
